<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!-- 行业资讯增加 -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>


		<title>行业资讯增加</title>
		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<script type="text/javascript" src="<%=basePath %>resource/js/jqueryeasyui/jquery-1.4.4.min.js"></script>
			<script type="text/javascript"
			src="<%=basePath %>/resource/js/kindeditor/kindeditor.js"></script>
		<link rel="stylesheet" type="text/css"
			href="<%=basePath %>/resource/js/kindeditor/skins/default.css"></link>
	<script type="text/javascript">
	      function  checkValid()
	      {
	        var title=$("#title");
	        if(title.val()=="")
	        {
	            alert('标题为空');
	            title.focus();
	            return ;
	        }
	        if (!KE.util.isEmpty('content')) document.getElementById("content").value=KE.util.getData('content');
	        var orderNum=$("#orderNum");
	        if(orderNum.val()=="")
	        {
	            alert('排序为空');
	            orderNum.focus();
	            return ;
	        }
	        $("#myform").submit();
	      }
	
	
	
	</script>
	</head>

	<body>
       <form id="myform" action="<%=basePath %>/news/addSaveIndustry.shtml" method="post" >
		<table align="center">
			<tr>
				<td colspan="2">
				    <h1>行业资讯增加</h1>
				</td>
			</tr>
			<tr>
				<td>
					   资讯标题：  	
				</td>
				<td>
				   <input id="title" name="newsPojo.title" type="text"/>
				</td>
			</tr>
			<tr>
				<td>
					   资讯类型：  	
				</td>
				<td>
				   <select id="type" name="newsPojo.type">
				      <option value="1">银行资讯</option>
				      <option value="2">券商资讯</option>
				      <option value="3">信托资讯</option>
				   </select>
				</td>
			</tr>
             <tr>
				<td>
					   资讯内容： 		
				</td>
				<td>
				  	<textarea cols="100" rows="30" id="content"
															name="newsPojo.content"></textarea>
				</td>
			</tr>
			  <tr>
				<td>
					    排序：
				</td>
				<td>
				   <input id="orderNum" name="newsPojo.orderNum" type="text"/>
				</td>
			</tr>
			<tr><td colspan="2" align="center"><input type="button" onclick="checkValid()" value="提交">&nbsp;&nbsp;<input type="reset" value="重置"/></td></tr>
		</table>
		   <input type="hidden" name="newsPojo.isAuth"  value="0"/>
		</form>
	</body>
	<script type="text/javascript">
			KE.show({
				id : 'content',
				loadStyleMode : false,
				resizeMode : 0,
				items : [
				'fontname', 'fontsize', '|', 'textcolor', 'bgcolor', 'bold', 'italic', 'underline',
				'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
				'insertunorderedlist']
			});
	</script>
</html>
